package com.springcloud.controller;

import com.springcloud.entity.YybUsers;
import com.springcloud.fegin.JobService;
import com.springcloud.service.YybUsersService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (YybUsers)表控制层
 *
 * @author xiaolei
 * @since 2020-01-27 20:17:59
 */
@RestController
public class YybUsersController {
    /**
     * 服务对象
     */
    @Resource
    private JobService jobService;

    @GetMapping("/query")
    public ResponseEntity<Object> query(int offset, int limit) {
        return this.jobService.query(offset,limit);
    }

}